<?php

namespace app\common\validate\product;

use think\Validate;

class Top extends Validate
{

    protected $rule = [
        'proid'   => 'require',
        'nums'   => ['require', 'number', '>:0']
    ];

    protected $message = [
        'proid.require'     => '商品未知',
        'nums.require'     => '商品数量未知'
    ];

    /**
     * 验证场景定义
     * 格式：'场景名称'	=>	['字段1','字段2'...]
     *
     * @var array
     */
    protected $scene = [];
}
